local UI = SecretaryUI

local function CreateTexture(parent, path, blend, left, right, top, bottom)
	local t = parent:CreateTexture()
	if path then t:SetTexture(path) end
	if blend then t:SetBlendMode(blend) end
	if left then t:SetTexCoord(left, right, top, bottom) end
	t:SetAllPoints(parent)
	return t
end

UI.CreateTexture = CreateTexture
